<template>
  <div class="forbidden-page">
    <div class="content">
      <h1>401</h1>
      <h2>访问被拒绝，未登录认证！</h2>
      <p>抱歉，您暂时没有权限访问此页面，请登录后访问！。</p>
      <button @click="goHome">登录页面</button>
    </div>
  </div>
</template>

<script setup>import {useRouter} from 'vue-router'

const router = useRouter()

const goHome = () => {
  router.push("/")
}
</script>

<style scoped>.forbidden-page {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f5f5f5;
  text-align: center;
}

.content {
  max-width: 500px;
  padding: 20px;
}

h1 {
  font-size: 72px;
  color: #e74c3c;
  margin: 0;
}

h2 {
  font-size: 28px;
  margin: 20px 0 10px;
  color: #333;
}

p {
  font-size: 18px;
  color: #666;
  margin-bottom: 30px;
}

button {
  padding: 12px 24px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #2980b9;
}
</style>
